package com.yoyo.itravel.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 航班实体类
 * liuchaojie
 */
public class Flight implements Serializable {
    private String flightId;//航班id
    private String airlineId;//航空公司id
    private String planTypeId;//机型id
    private String flightNum;//航班号
    private String departCity;//出发城市
    private String arrivalCity;//终点城市
    private String departAirport;//出发机场
    private String arrivalAirport;//终点机场
    private Date departTime;//出发时间
    private Date arrivalTime;//到达时间
    private Integer isOnsell;//航班机票是否在售（0：不在售  1：在售）

    @Override
    public String toString() {
        return "Flight{" +
                "flightId='" + flightId + '\'' +
                ", airlineId='" + airlineId + '\'' +
                ", planTypeId='" + planTypeId + '\'' +
                ", flightNum='" + flightNum + '\'' +
                ", departCity='" + departCity + '\'' +
                ", arrivalCity='" + arrivalCity + '\'' +
                ", departAirport='" + departAirport + '\'' +
                ", arrivalAirport='" + arrivalAirport + '\'' +
                ", departTime='" + departTime + '\'' +
                ", arrivalTime='" + arrivalTime + '\'' +
                ", isOnsell=" + isOnsell +
                '}';
    }

    public String getFlightId() {
        return flightId;
    }

    public void setFlightId(String flightId) {
        this.flightId = flightId;
    }

    public String getAirlineId() {
        return airlineId;
    }

    public void setAirlineId(String airlineId) {
        this.airlineId = airlineId;
    }

    public String getPlanTypeId() {
        return planTypeId;
    }

    public void setPlanTypeId(String planTypeId) {
        this.planTypeId = planTypeId;
    }

    public String getFlightNum() {
        return flightNum;
    }

    public void setFlightNum(String flightNum) {
        this.flightNum = flightNum;
    }

    public String getDepartCity() {
        return departCity;
    }

    public void setDepartCity(String departCity) {
        this.departCity = departCity;
    }

    public String getArrivalCity() {
        return arrivalCity;
    }

    public void setArrivalCity(String arrivalCity) {
        this.arrivalCity = arrivalCity;
    }

    public String getDepartAirport() {
        return departAirport;
    }

    public void setDepartAirport(String departAirport) {
        this.departAirport = departAirport;
    }

    public String getArrivalAirport() {
        return arrivalAirport;
    }

    public void setArrivalAirport(String arrivalAirport) {
        this.arrivalAirport = arrivalAirport;
    }

    public Date getDepartTime() {
        return departTime;
    }

    public void setDepartTime(Date departTime) {
        this.departTime = departTime;
    }

    public Date getArrivalTime() {
        return arrivalTime;
    }

    public void setArrivalTime(Date arrivalTime) {
        this.arrivalTime = arrivalTime;
    }

    public Integer getIsOnsell() {
        return isOnsell;
    }

    public void setIsOnsell(Integer isOnsell) {
        this.isOnsell = isOnsell;
    }

    public Flight(String flightId, String airlineId, String planTypeId, String flightNum, String departCity, String arrivalCity, String departAirport, String arrivalAirport, Date departTime, Date arrivalTime, Integer isOnsell) {
        this.flightId = flightId;
        this.airlineId = airlineId;
        this.planTypeId = planTypeId;
        this.flightNum = flightNum;
        this.departCity = departCity;
        this.arrivalCity = arrivalCity;
        this.departAirport = departAirport;
        this.arrivalAirport = arrivalAirport;
        this.departTime = departTime;
        this.arrivalTime = arrivalTime;
        this.isOnsell = isOnsell;
    }



    public Flight() {
    }
}
